var nodemailer = require('nodemailer');

var transporter = nodemailer.createTransport({
	service : 'Gmail',
	auth:{
		user:'renzhiweitl@gmail.com',
		pass:'19960312'
	}
});

var mailOptions = {
	from : 'basspirit',
	to:'529386021@qq.com',
	subject:'Hello ren',
	text:'治电email程序',
	html:'<script>alert:"heheda";</script><h1>heheda</h1>'
};

transporter.sendMail(mailOptions,function(error,info){
	if (error) {
		console.log(error);
	}else{
		console.log('Message sent: '+info.response);
	}

});